//获取应用实例
var api = require('../../../config/api.js');
var util = require('../../../utils/util.js');
const app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    detailed:{}
  },
  detailed:function(res){
    let that = this;
    util.request(api.PersonalIncomeUrl, { unionid: app.globalData.unionid }).then(function (res) {

      if (res.data.code == 200) {
        that.setData({
          detailed: res.data.data.data,
          ua: res.data.data.ua_account
        })
      }
    })

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.detailed();
  }

})